#ifndef JOINTLIMITS_H_
#define JOINTLIMITS_H_

#include "OOPSMP/Utils/General/Factory.H"
/*
 *@brief obsolete class, not used anymore
 */
namespace OOPSMP {
	
	ForwardClassDeclaration(JointLimits);
	
	class JointLimits {

	public:
		
		JointLimits() : n_DoF( 0 ) {}

		JointLimits( int n_DOF, double * lims );
		~JointLimits();

		// setters
		void set_n_DoF( const int n_DOF ) { n_DoF = n_DOF; }
		void setLimits( const double * lims ) {
			limits = new double[n_DoF];
			for ( int i = 0 ; i < n_DoF ; i++ )
				limits[i] = lims[i];
		}

		// getters
		double *	getLimits() const { return limits; }
		int			get_n_DoF() const { return n_DoF; }

	private:

		int			n_DoF;
		double *	limits;

	};

	DeclareInstanceFactory(JointLimits, Factory);

}

#endif